home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Telephone Manager / Stiletto Sources / Headers / Utilities.h < prev   
Encoding:
C/C++ Source or Header  |  1995-07-05  |  3.1 KB  |  104 lines  |  [TEXT/MPS ]

  1. /************************************************************************************************/
  2. /*                                                                                                */
  3. /*    Program Name:    Stiletto                                                                    */
  4. /*                                                                                                */
  5. /*    File Name:        Utilities.h                                                                    */
  6. /*                                                                                                */
  7. /*    © Apple Computer, Inc. 1991-1995                                                            */
  8. /*    All Rights Reserved                                                                            */
  9. /*                                                                                                */
  10. /*    Revision History:                                                                            */
  11. /*                                                                                                */
  12. /*        Date        Who                    Modification                                            */
  13. /*                                                                                                */
  14. /*        1991-06-30    Chris Halim            Original version                                        */
  15. /*        1995-06-26    Jaakko Railo        Version 2.0                                                */
  16. /*                                                                                                */
  17. /************************************************************************************************/
  18.  
  19. /****************************************** DESCRIPTION ******************************************
  20.  
  21. *************************************************************************************************/
  22.  
  23. /************************************************************************************************/
  24. /************************************************************************************************/
  25.  
  26.  
  27. #ifndef    __UTILITIES__
  28. #define    __UTILITIES__
  29.  
  30. #ifndef    __RETRACE__
  31. #include    <Retrace.h>
  32. #endif
  33.  
  34. #ifndef    __LISTS__
  35. #include    <Lists.h>
  36. #endif
  37.  
  38.  
  39.  
  40. #ifndef    __DIALOGS__
  41. #include    <Dialogs.h>
  42. #endif
  43.  
  44.  
  45.  
  46. #ifdef __cplusplus
  47. extern "C" {
  48. #endif    
  49.  
  50.  
  51. pascal Boolean    AlertUserFilterProc(DialogPtr theDialog, EventRecord * theEvent, short * itemHit);
  52.  
  53. Boolean IsAlias (Str255 fileName, short vRefNum, long dirID);
  54. void     AlertUser (Str255 pString, short errCode);
  55. void    SetPopupValue (DialogPtr theDialog, short itemNumber, short theValue);
  56. short    GetPopupValue (DialogPtr theDialog, short itemNumber);
  57. void     HiliteItem (DialogPtr theDialog, short itemNumber, short hiliteState);
  58. void     BlinkItem (DialogPtr    theDialog, short itemNumber);
  59. Boolean    ToggleCheckBox (DialogPtr theDialog, short itemNumber);
  60. void     SetCheckMark (short menuID, short theItem);
  61.  
  62.  
  63. pascal     void DrawBox (DialogPtr theDialog, short itemNumber);
  64. pascal     void DrawDefault (DialogPtr theDialog, short itemNumber);
  65.  
  66. void    CenterRect (const Rect * bounds, Rect * theRect);
  67. void    SetRectFromResource (Rect * theRect, short resID);
  68. Boolean    OutOfBound (const Rect * theRect, const Rect * bounds);
  69.  
  70. Boolean    ToolFileStillExists (ConstStr255Param toolName);
  71.  
  72.  
  73. // The following two VBLTask routines are not used by Stiletto
  74.  
  75. //VBLTask * InstallVBLTask (VBLProcPtr taskFunc, short ticks);
  76. //void    RemoveVBLTask (VBLTask * taskPtr);
  77.  
  78.  
  79. long    GetAppFreeMem (void);
  80. long    GetSysFreeMem (void);
  81.  
  82. pascal Boolean StandardFilterProc(DialogPtr theDialog, EventRecord * theEvent, short * itemHit);
  83.  
  84. void    SelectPreviousCell (ListHandle theList);
  85. void    SelectNextCell (ListHandle theList);
  86. void    ClearAllSelectedCells (ListHandle theList);
  87.  
  88. short GetQDVersion ();
  89. Boolean HasColorQD ();
  90.  
  91. long    GetGestaltResult(OSType gestaltSelector);
  92. void    ZoomWindowInCurrentDevice (WindowPtr theWindow, short maxWidth, short maxHeight,
  93.             short zoomDirection, Boolean front);
  94.  
  95. char *    ConvertToCString (char * s1, const char * s2);
  96.  
  97. MenuHandle GetPopupMHandle (DialogPtr dialog, short resID);
  98.  
  99.  
  100. #ifdef __cplusplus
  101. }
  102. #endif
  103.  
  104. #endif